//
//  OCNetworkingTool.h
//  ocVB
//
//  Created by apple on 2016/10/27.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>
#import "OCUserInfoViewModel.h"
@interface OCNetworkingTool : AFHTTPSessionManager


+ (instancetype)sharedManager;

- (void)requestData:(requestMethod)way URLString:(NSString *)URLString parameters:(id)parameter success:(void(^)(id))success failure:(void(^)(NSError *))failure;

-(void)getUserTocken:(NSString *)code success:(void(^)(id))success failure:(void(^)(NSError *))failure;

- (void)oauthLoadUserInfo:(OCUserInfoModel *)model success:(void(^)(id))success failure:(void(^)(NSError *))failure;
@end
